package com.xjj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName Photo
 * @Description TODO
 * @Author 于文龙
 * @Date 2022/10/19 18:45
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Photo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //发布者id
    @TableField("manager_id")
    private Integer managerId;
    //时间
    @TableField("time")
    private String time;
    //内容
    @TableField("content")
    private String content;
    //点赞数
    @TableField("like_num")
    private Integer likeNum;
    //评论数
    @TableField("comment_num")
    private Integer commentNum;
    //图片
    @TableField(exist = false)
    private List<String> img;
    //当前用户是否点赞
    @TableField(exist = false)
    Boolean isLiked;
}
